/*
 * @(#)PlayRock.java $version 2013. 5. 14.
 *
 * Copyright 2012 NHN Corp. All rights Reserved. 
 * NHN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */

package com.pace.gonu.model;

import com.pace.gonu.constants.Order;

/**
 * @author pace
 */
public class PlayRock {
	private BoardPath path;
	private int initPathIndex;
	private Order order;

	public BoardPath getPath() {
		return path;
	}

	public void setPath(BoardPath path) {
		this.path = path;
	}

	public String getOrder() {
		if (order == null) {
			return "";
		} else {
			return order.toString();
		}

	}

	public Order getOrderObject() {
		return order;
	}

	public void setOrder(Order order) {
		this.order = order;
	}

	public int getInitPathIndex() {
		return initPathIndex;
	}

	public void setInitPathIndex(int initPathIndex) {
		this.initPathIndex = initPathIndex;
	}

	public boolean eqaul(PlayRock rock) {
		if (this.path.equal(rock.getPath())) {
			return true;
		}

		return false;
	}

}
